<h1>Profile</h1>
<?php $this->breadcrumbs=array(
'Users'=>array('index'),
$model->name,
);

$this->menu=array(
array('label'=>'Update profile', 'url'=>array('UpdateOwnProfile','id'=>$model->id)),
);
?>
<?php if(Yii::app()->user->hasFlash('success')):?>
    <div class="flash-success">
        <?php echo Yii::app()->user->getFlash('success');?>
    </div>
<?php endif;?>
<?php $this->widget('zii.widgets.CDetailView', array(
                                                    'data'=>$model,
                                                    'attributes'=>array(
                                                        'id',
                                                        array(
                                                            'label'=>'Avatar',
                                                            'type'=>'raw',
                                                            'value'=>CHtml::image('/images/avatar/'.$model->avatar,'Аватар пользователя',array("height"=>"50","title"=>"Аватар пользователя"))),
                                                        'name',
                                                        'login',
                                                        'email',

                                                        'create_time',
                                                        'role',
                                                        'active',
                                                        'login_time',
                                                        'last_login_time',
                                                    ),
                                               )); ?>
